package com.itheima.a10demopolymorphsm;

public class Cat extends Animal{
    public void catchMouse(){
        System.out.println("猫抓老鼠");
    }

    public Cat(int age, String color){
        super(age, color);
    }

    @Override
    public void eat(String food) {
        System.out.println("年龄为" + getAge() + "岁的" + getColor() + "🐱眯着眼睛侧着头吃" + food);
    }
}
